package com.jmb.api.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.jmb.api.common.exception.ParseException;
import com.jmb.api.model.entity.ApiTestCaseRelyData;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jmb.api.model.to.api.rely.ApiTestCaseRelyDataTO;
import com.jmb.api.model.vo.api.rely.ApiRelyDataVO;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
* @author jinbo
* @description 针对表【api_test_case_rely_data(接口依赖)】的数据库操作Service
* @createDate 2025-04-08 13:53:56
*/
public interface ApiTestCaseRelyDataService extends IService<ApiTestCaseRelyData> {
    void saveApiTestCaseRelyData(ApiTestCaseRelyData relyData, HttpServletRequest request) throws ParseException;
    // 查询列表数据
    List<ApiRelyDataVO> findApiTestCaseRelyDataList(IPage<ApiRelyDataVO> page, ApiTestCaseRelyDataTO apiTestCaseRelyDataListTO) ;
    void modifyIfRelyData(ApiTestCaseRelyData relyData,HttpServletRequest request) throws ParseException;

    void removeIfRelyData(Integer relyId, HttpServletRequest request) ;
    String checkRelyResult(Integer relyId, String executor) throws ParseException;
    ApiRelyDataVO findRelyDataByIdName(String relyName,Integer relyId);
    ApiRelyDataVO selectRelyDataById(Integer relyId);
    ApiRelyDataVO selectRelyDataByName(String relyName);
}
